﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using NeuralNetworks.Layers;

namespace NeuralNetworks.FileParsing
{
    class RandomRange : LayerPart
    {
        private double min, max;

        public RandomRange(double min, double max)
        {
            this.min = min;
            this.max = max;
        }

        public void apply(Layer current, Layer next)
        {
            if (current != null)
            {
                current.MinRandom = min;
                current.MaxRandom = max;
            }
        }
    }
}
